﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Grow.EventBus.Cap.PublisherDomainEvents;
using Grow.EventBus.Cap.SubscriberDomainEvents;

namespace Grow.EventBus.Cap.DomainEventSend
{
    public interface IDomainEventSend
    {
        /// <summary>
        /// 发送消息
        /// </summary>
        /// <param name="publisherDomainEventDto"></param>
        /// <param name="cancellationToken"></param>
        /// <returns></returns>
        Task SendAsync(PublisherDomainEventDto publisherDomainEventDto, CancellationToken cancellationToken = default);
    }
}
